import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { NewsComponent } from '../frame/modules/news/news.component';
import { FrameComponent } from '../frame/frame/frame.component';
import { PersonalComponent } from '../frame/modules/personal/personal.component'

const routes: Routes = [
  {
    path: '',
    component: FrameComponent,
    children: [
      { path: '', component: NewsComponent },
      { path: 'news', component: NewsComponent },
      { path: 'personal', component: PersonalComponent }
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class FrameRoutingModule { }
